package cn.edu.tjnu.orm;

public class EmpBean {
	private Integer empId;
	private String empName;
	private String empCode;
	private Integer deptId;
	/**
	 * hibernate:N-1映射关系：需要在N端维护一个1端的引用对象
	 */
	private DeptBean deptB;

	public Integer getEmpId() {
		return empId;
	}

	public void setEmpId(Integer empId) {
		this.empId = empId;
	}

	public String getEmpName() {
		return empName;
	}

	public void setEmpName(String empName) {
		this.empName = empName;
	}

	public String getEmpCode() {
		return empCode;
	}

	public void setEmpCode(String empCode) {
		this.empCode = empCode;
	}

	public Integer getDeptId() {
		return deptId;
	}

	public void setDeptId(Integer deptId) {
		this.deptId = deptId;
	}

	public DeptBean getDeptB() {
		return deptB;
	}

	public void setDeptB(DeptBean deptB) {
		this.deptB = deptB;
	}


}
